import request from '@/utils/request'


//获取配置
export function getConfig(params: any) {
    return request.post({ url: '/admin.turntable.config/getConfig', params })
}


//修改配置
export function updateConfig(params: any) {
    return request.post({ url: '/admin.turntable.config/updateConfig', params })
}

//保存奖品
export function savePrize(params: any) {
    return request.post({ url: '/admin.turntable.prize/savePrize', params })
}


//获取奖项配置列表
export function getPrizeList(params: any) {
    return request.get({ url: '/admin.turntable.prize/getPrizeList', params })
}


// 优惠券列表
export function couponList(params: any) {
    return request.post({ url: '/admin.auth.other/couponList', params })
}


//获取抽奖记录分页列表
export function getUserTurntablePrizePageList(params: any) {
    return request.get({ url: '/admin.turntable.prize/getUserTurntablePrizePageList', params })
}
